home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Resources / Chat & Communication / Digsby build 37 / digsby_setup.exe / lib / plugins / nowplaying / wmp.pyo (.txt) < prev   
Python Compiled Bytecode  |  2008-10-13  |  896b  |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.5)
  3.  
  4. from comtypes.client import CreateObject
  5. from gui.native.win.process import process_list
  6. WMP_PROCESS_NAME = 'wmplayer.exe'
  7.  
  8. def currentSong(processes):
  9.     if processes is None:
  10.         processes = process_list()
  11.     
  12.     if WMP_PROCESS_NAME not in processes:
  13.         return None
  14.     
  15.     wmp = CreateObject('WMPlayer.OCX')
  16.  
  17.  
  18. def main():
  19.     clock = clock
  20.     import time
  21.     pprint = pprint
  22.     import pprint
  23.     before = clock()
  24.     pprint(currentSong())
  25.     print 'took', clock() - before
  26.  
  27. if __name__ == '__main__':
  28.     main()
  29.  
  30.